﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pantry.DataAccess;
using System.Data;

namespace Pantry.Business
{
    public class CountyBus
    {
        private CountyDao _countyDao;
        public DataTable SelectAllCounty()
        {
            _countyDao = new CountyDao();
            return _countyDao.SelectAllCounty();
        }
        public bool CheckPostcodeValid(string postcode)
        {
            _countyDao = new CountyDao();
            int result = _countyDao.CheckPostcodeValid(postcode);
            return (result != 0);
        }
    }
}
